<?php

namespace paper\http;

class Dispatchable
{
    private array $middleware = [];
    private $callable;
    public function addMiddleware($middleware)
    {
        $this->middleware[] = $middleware;
    }

    /**
     * @return mixed
     */
    public function getCallable(): mixed
    {
        return $this->callable;
    }

    /**
     * @param mixed $callable
     */
    public function setCallable(mixed $callable): void
    {
        $this->callable = $callable;
    }
}